package com.ruoyi.bbsAdmin.domain.vo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 评论+昵称 comment +nickname
 *
 * @author ruoyi
 * @date 2022-10-31
 */
public class commentVo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 唯一id */
    private String commentid;

    /** 评论者id */
    @Excel(name = "评论者id")
    private String userid;

    /** 发帖人昵称 */
    private String nickname;

    /** 帖子id */
    @Excel(name = "帖子id")
    private String contentid;

    /** 子评论所在主评论的id */
    @Excel(name = "子评论所在主评论的id")
    private String replycommentid;

    /** 是否是子评论对子评论的评论1：是；0：否 */
    @Excel(name = "是否是子评论对子评论的评论1：是；0：否")
    private Integer isreply;

    /** 子评论回复的子评论对象名称 */
    @Excel(name = "子评论回复的子评论对象名称")
    private String replynickname;

    @Excel(name = "子评论回复的子评论对象id")
    private String replyuserid;

    /** 1：主评论；0：评论的评论 */
    @Excel(name = "1：主评论；0：评论的评论")
    private Integer ismain;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commenttext;

    /** 评论的图片，以逗号分割的形式存储 */
    @Excel(name = "评论的图片，以逗号分割的形式存储")
    private String commenturl;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long upnum;

    /** “踩”数 */
    @Excel(name = "“踩”数")
    private Long downnum;

    /** 举报数量 */
    @Excel(name = "举报数量")
    private Long informnum;

    /** 评论状态。0：正常；1：折叠展示；2：置顶；3：需要审核；4：已下架；5：举报； */
    @Excel(name = "评论状态。0：正常；1：折叠展示；2：置顶；3：需要审核；4：已下架；5：举报；")
    private Integer commentstate;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createtime;

    /** 更新时间 */
    @Excel(name = "更新时间")
    private Date updatetime;

    @Excel(name = "学校id")
    private Integer schoolid;

    public void setCommentid(String commentid)
    {
        this.commentid = commentid;
    }

    public String getCommentid()
    {
        return commentid;
    }
    public void setUserid(String userid)
    {
        this.userid = userid;
    }

    public String getUserid()
    {
        return userid;
    }
    public void setContentid(String contentid)
    {
        this.contentid = contentid;
    }

    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }
    public String getNickname()
    {
        return nickname;
    }

    public String getContentid()
    {
        return contentid;
    }
    public void setReplycommentid(String replycommentid)
    {
        this.replycommentid = replycommentid;
    }

    public String getReplycommentid()
    {
        return replycommentid;
    }

    public void setReplyuserid(String replyuserid)
    {
        this.replyuserid = replyuserid;
    }

    public String getReplyuserid()
    {
        return replyuserid;
    }
    public void setIsreply(Integer isreply)
    {
        this.isreply = isreply;
    }

    public Integer getIsreply()
    {
        return isreply;
    }
    public void setReplynickname(String replynickname)
    {
        this.replynickname = replynickname;
    }

    public String getReplynickname()
    {
        return replynickname;
    }
    public void setIsmain(Integer ismain)
    {
        this.ismain = ismain;
    }

    public Integer getIsmain()
    {
        return ismain;
    }
    public void setCommenttext(String commenttext)
    {
        this.commenttext = commenttext;
    }

    public String getCommenttext()
    {
        return commenttext;
    }
    public void setCommenturl(String commenturl)
    {
        this.commenturl = commenturl;
    }

    public String getCommenturl()
    {
        return commenturl;
    }
    public void setUpnum(Long upnum)
    {
        this.upnum = upnum;
    }

    public Long getUpnum()
    {
        return upnum;
    }
    public void setDownnum(Long downnum)
    {
        this.downnum = downnum;
    }

    public Long getDownnum()
    {
        return downnum;
    }
    public void setInformnum(Long informnum)
    {
        this.informnum = informnum;
    }

    public Long getInformnum()
    {
        return informnum;
    }
    public void setCommentstate(Integer commentstate)
    {
        this.commentstate = commentstate;
    }

    public Integer getCommentstate()
    {
        return commentstate;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public void setSchoolid(Integer schoolid)
    {
        this.schoolid = schoolid;
    }

    public Integer getSchoolid()
    {
        return schoolid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("commentid", getCommentid())
                .append("userid", getUserid())
                .append("userid", getUserid())
                .append("contentid", getContentid())
                .append("replycommentid", getReplycommentid())
                .append("isreply", getIsreply())
                .append("replynickname", getReplynickname())
                .append("ismain", getIsmain())
                .append("commenttext", getCommenttext())
                .append("commenturl", getCommenturl())
                .append("upnum", getUpnum())
                .append("downnum", getDownnum())
                .append("informnum", getInformnum())
                .append("commentstate", getCommentstate())
                .append("createtime", getCreatetime())
                .append("updatetime", getUpdatetime())
                .append("schoolid", getSchoolid())
                .toString();
    }
}
